package rest.home.service;

import rest.home.entity.*;
import rest.home.entity.ms.Limit;
import rest.home.entity.ms.OlderAndVisitorAndRoom;

import java.util.List;

/**
 * @author: lbc
 * @Date: 2022/5/5 15:26
 * @version: 8.0
 * @describe:
 */
public interface RestHomeSer {
    //登录
    public List<Admin> login();
    //新增账号密码
    public Boolean addAdmin(Admin admin);
    //2.1、查询老人信息
    public List<Older> findAll();
    //2.2、修改老人信息
    public Integer updateOlder(Older older);
    //根据老人ID查询老人信息
    public Older findOlderIdByOlder(Integer olderId);
    public List<Trouble> findAllTrouble();//展示所有事故
    public Integer updateTroubleById(Trouble trouble);//修改事故信息
    public Trouble findTroubleById(Integer troubleId);
    public Boolean addTrouble(Trouble trouble);//新增事故信息
    public Boolean deleteTrouble(Integer troubleId);//删除事故信息
    public List<Room> showRoom();
    public List<Room> showRoomByStatus();
    public Integer updateRoomMessage(Room room);
    public Integer addRoomMessage(Room room);
    public Boolean deleteRoomMessage(Integer id);
    public List<Room> showRoomByType(String typeName);
    public List<PayMent> findAllPayMent();
    public List<Nurse> findAllNurse();
    public Nurse existsNurseId(Integer integer);
    public Boolean updateNurse(Nurse nurse);
    public boolean addNurse(Nurse nurse);
    public boolean deleteNurse(Integer integer);
    //添加老人
    public Boolean addOlder(Older older);
    //删除老人
    public Boolean deleteOlder(Integer deleteOlderId);
    public List<Health> showHealthByType();
    public Boolean updateHealthMessage(Health health);
    public List<Medicine> showMedicine();
    public Boolean addMedicine(Medicine medicine);
    public Boolean updateMedicine(Medicine medicine);
    public Boolean deleteMedicine(Integer integer);
    public Boolean addHealth(Health health);
    public List<NursingPayMent> showAllNursing();
    public List<Visitor> showAllVisitor();
    public Visitor findVisitorById(Integer vistorId);
    public Boolean updateVisitore(Visitor visitor);
    public Boolean addVisitor(Visitor visitor);
    public Boolean deleteVisitor(Integer visitorId);
    public List<PayMent> findOlderByStatus(Integer olderId);
    //查看外出信息
    public List<Outing> showAllOuting();
    //外出报备
    public Boolean addOuting(Outing outing);
    //判断外出报备ID是否存在
    public Outing existsOutingId(Integer outingId);
    //外出归来修改报备状态
    public Boolean updateOuting(Outing outing);
    public Limit<OlderAndVisitorAndRoom> OlderAndVisitorAndRoomByPage(Integer index);
}
